package com.atguigu.gmall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author:lyd
 * @Date:2023/8/14 21:23
 * @Version:1.0
 * @Description
 **/
@EnableTransactionManagement //开启基于注解的自动事务功能
@MapperScan(basePackages = "com.atguigu.gmall.product.mapper")//指定mapper接口的路径
@SpringCloudApplication
@EnableFeignClients(basePackages="com.atguigu.gmall.feign.search")
public class ServiceProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceProductApplication.class, args);
    }
}
